package com.gliese.bambook.handler;

import com.gliese.bambook.object.Snbc;
import com.gliese.bambook.service.snb.interfaces.CreateSnbcService;
import com.gliese.bambook.service.snb.interfaces.UpdateSnbfService;

public class SnbcAndSnbfHandler {
	private CreateSnbcService createSnbcService;
	private UpdateSnbfService updateSnbfService;

	public void Handle(Snbc snbc, String snbcFileName, int index,boolean first) {

		createSnbcService.createSnbc(snbc, snbcFileName,first);
		updateSnbfService.updateTocSnbf(snbc, snbcFileName, index);
		
	}

	public CreateSnbcService getCreateSnbcService() {
		return createSnbcService;
	}

	public void setCreateSnbcService(CreateSnbcService createSnbcService) {
		this.createSnbcService = createSnbcService;
	}

	public UpdateSnbfService getUpdateSnbfService() {
		return updateSnbfService;
	}

	public void setUpdateSnbfService(UpdateSnbfService updateSnbfService) {
		this.updateSnbfService = updateSnbfService;
	}
}
